<div class="filter-bar">
<form action="__CONTROLLER__/index" method="post" id="frm" >
	<div class="view">
		<div class="row clearfix">
			<div class="col-md-4 column ui-sortable">
			    <label class="col-sm-3 control-label" style="margin-top:6px;">真实姓名</label>
			    <div class="col-sm-7">
				   <input type="text" name="realName" class="form-control" value="{$params.realName}" />
			    </div>
			</div>
			<div class="col-md-4 column ui-sortable">
			    <label class="col-sm-3 control-label" style="margin-top:6px;">电话</label>
			    <div class="col-sm-7">
				   <input type="text" name="tel" class="form-control" value="{$params.tel}" />
			    </div>
			</div>
			<div class="col-md-4 column ui-sortable">
			    <div class="col-sm-9">
			       <input type="submit" class="btn btn-info submit" value="搜索"/>
			    </div>
			</div>
		</div>
	</div>
</form>
</div>
<hr/>
<table class="table table-hover">
  <thead>
    <tr>
      <th>ID</th>
      <th>OPENID</th>
      <th>真实姓名</th>
      <th>代理商名称</th>
      <th>身份证号</th>
      <th>电话</th>
      <th>微信号</th>
      <th>QQ号</th>
      <th>申请时间</th>
      <th>申请状态</th>
      <th>操作</th>
    </tr>
  </thead>
  <tbody>
    <volist name="agentApplyLists" id="vo">
      <tr>
        <td>{$vo.id}</td>
        <td>{$vo.openId}</td>
        <td>{$vo.realName}</td>
        <td>{$vo.name}</td>
        <td>{$vo.idnum}</td>
        <td>{$vo.tel}</td>
        <td>{$vo.wechat}</td>
        <td>{$vo.qq}</td>
        <td>{$vo['createTime']|date='Y-m-d H:i:s',###}</td>
        <th>{$vo['status']?'已成为代理':'未通过'}</th>
        <td>
        <if condition="$vo['status'] eq 0">
          <a class="btn btn-primary btn-xs" href="{:U('AgentApply/addToAgent', 'id='.$vo['id'])}">加为代理商</a>
        </if>
        </td>
      </tr>
    </volist>
  </tbody>
</table>
<div class="pagination">{$pagination}</div>